﻿namespace HelloWorld
{
    public class Entry<T>
    {
        private T _data;

        private Entry<T> next;
        public Entry(T data)
        {
            this._data = data;
        }

        public void setNext(Entry<T> next)
        {
            this.next = next;
        }

        public Entry<T> getNext()
        {
            return this.next;
        }

        public T getData()
        {
            return _data;
        }
    }
}